﻿@{
    ViewBag.Title = "主页";
}

@section pageHeader{
    <link href="@Url.Content("~/Content/main.css")" rel="stylesheet" type="text/css" />
}
    <div>
    @Html.ActionLink("车型大全", "Index", ControllerNames.Car) | @Html.ActionLink("宝马S6", "Index", ControllerNames.Car, new { id = 1 }, null) | @Html.ActionLink("奔驰", "Index", ControllerNames.Brand, new { id = 1 }, null) | @Html.ActionLink("大众A系列", "Index", ControllerNames.Series, new { id = 1 }, null)
    </div>
    <div class="main_first_layer" id="tier1">
        <div class="content_left" id="tier1_left">
            <div class="panel">
                <img alt="图片广告1" height="250" width="300" src="./images/ads/1.jpg" /><br />
                <img alt="图片广告2" height="150" width="300" src="./images/ads/2.jpg" />
            </div>
        </div>
        <div class="content_center" id="tier1_center">
               @Html.Action("NewsPanel", ControllerNames.Home, new { count = 12, showTitleBar = false, category = string.Empty })
        </div>
        <div class="content_right" id="tier1_right">right</div>
    </div>
    <div id="tier2">
        <div class="main_layer" id="tier2_l1">
            <div class="content_left" id="tier2_l1_left">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "商家新闻" })
            </div>
            <div class="content_center" id="tier2_l1_center">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "热门促销" })
            </div>
            <div class="content_right" id="tier2_l1_right">
                <!-- panel begin-->
                <div class="panel">
                    <div class="panelTitleBar">
                        <h3>
                            <a>新闻事件</a>
                            <a class="panelTitleMore">更多</a>
                        </h3>
                    </div>
                    <div class="panelContent">
                    </div>
                </div>
                <!-- panel end-->
            </div>
        </div>
        <div id="main_ad_1"><img src="./images/ads/4.jpg" /></div>
        <div class="main_layer" id="tier2_l2">
            <div class="content_left" id="tier2_l2_left">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "车展消息" })
            </div>
            <div class="content_center" id="tier2_l2_center">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "对比评测" })
            </div>
            <div class="content_right" id="tier2_l2_right">
                <!-- panel begin-->
                <div class="panel">
                    <div class="panelTitleBar">
                        <h3>
                            <a>新闻事件</a>
                            <a class="panelTitleMore">更多</a>
                        </h3>
                    </div>
                    <div class="panelContent">
                    </div>
                </div>
                <!-- panel end-->
            </div>
        </div>
        <div class="main_layer" id="tier2_l3">
            <div class="content_left" id="tier2_l3_left">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "赛事精选" })
            </div>
            <div class="content_center" id="tier2_l3_center">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "试驾报道" })
            </div>
            <div class="content_right" id="tier2_l3_right">
                <!-- panel begin-->
                <div class="panel">
                    <div class="panelTitleBar">
                        <h3>
                            <a>新闻事件</a>
                            <a class="panelTitleMore">更多</a>
                        </h3>
                    </div>
                    <div class="panelContent">
                    </div>
                </div>
                <!-- panel end-->
            </div>
        </div>
        <div id="main_ad_2"><img src="./images/ads/4.jpg" /></div>
        <div class="main_layer" id="tier2_l4">
            <div class="content_left" id="tier2_l4_left">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "热门车型" })
            </div>
            <div class="content_center" id="tier2_l4_center">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "最新消息" })
            </div>
            <div class="content_right" id="tier2_l4_right">
                <!-- panel begin-->
                <div class="panel">
                    <div class="panelTitleBar">
                        <h3>
                            <a>新闻事件</a>
                            <a class="panelTitleMore">更多</a>
                        </h3>
                    </div>
                    <div class="panelContent">
                    </div>
                </div>
                <!-- panel end-->
            </div>
        </div>
        <div class="main_layer" id="tier2_l5">
            <div class="content_left" id="tier2_l5_left">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "用车养车" })
            </div>
            <div class="content_center" id="tier2_l5_center">
                @Html.Action("NewsPanel", ControllerNames.Home, new { category = "新车导购" })
            </div>
            <div class="content_right" id="tier2_l5_right">
                <!-- panel begin-->
                <div class="panel">
                    <div class="panelTitleBar">
                        <h3>
                            <a>新闻事件</a>
                            <a class="panelTitleMore">更多</a>
                        </h3>
                    </div>
                    <div class="panelContent">
                    </div>
                </div>
                <!-- panel end-->
            </div>
        </div>
    </div>
    <div id="main_ad_3">@Html.ActionLink("Show", ControllerNames.Advertise, new { positionCode = "main_ad_2" })</div>
    <div class="clear" ></div>
